home *** CD-ROM | disk | FTP | other *** search
/ Amiga Format CD 49 / Amiga Format CD49 (2000-01-17)(Future Publishing)(GB)(Track 1 of 3)[!][issue 2000-02].iso / -serious- / graphics / gnuplot / gnuplot-3.7.1doc / demo / world.dem < prev   
Text File  |  1999-11-29  |  1KB  |  56 lines

  1. #
  2. # $Id: world.dem,v 1.1.1.1.2.2 1999/08/19 14:34:27 lhecking Exp $
  3. #
  4. #
  5. set title "Gnuplot Correspondences"
  6. set nokey
  7. set noborder
  8. set noyzeroaxis
  9. set noxtics
  10. set noytics
  11. #
  12. # plot world map and correspondent locations as a +
  13. plot 'world.dat' with lines 3 4, 'world.cor' with points 1 2
  14. set title ""
  15. set key
  16. set border
  17. set yzeroaxis
  18. set xtics
  19. set ytics
  20. pause -1 "Hit return to continue"
  21. #
  22. # plot a '3D version using spherical coordinate system' of the world.
  23. set angles degrees
  24. set title "3D version using spherical coordinate system"
  25. set ticslevel 0
  26. set view 70,40,0.8,1.2    # HBB: ,,2.0
  27. set mapping spherical
  28. set parametric
  29. set samples 32
  30. set isosamples 9
  31. set urange [-90:90]
  32. set vrange [0:360]
  33. splot cos(u)*cos(v),cos(u)*sin(v),sin(u) with lines 5 6,\
  34. 'world.dat' with lines 3 4, 'world.cor' with points 1 2
  35. pause -1 "Hit return to continue"
  36. #
  37. # plot a '3D version using cylindrical coordinate system' of the world.
  38. set title "3D version using cylindrical coordinate system"
  39. set ticslevel 0.0
  40. set view 70,40,0.8,1.2    #HBB: ,,2.0
  41. set mapping cylindrical
  42. set parametric
  43. set samples 32
  44. set isosamples 9
  45. set urange [-180:180]
  46. set vrange [-90:90]
  47. splot cos(u),sin(u),v with lines 5 6,\
  48. 'world.dat' with lines 3 4, 'world.cor' with points 1 2
  49. pause -1 "Hit return to continue"
  50.  
  51.  
  52. #
  53. # Clean up:
  54. #
  55. reset
  56.